package com.seocoo.worker.order.widget;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.seocoo.worker.R;
import com.seocoo.worker.order.entity.RspWorkers;

/**
 * 已关联工友
 */
public class OrderDetailWorkerAdapter extends BaseQuickAdapter<RspWorkers, BaseViewHolder> {

    public OrderDetailWorkerAdapter() {
        super(R.layout.order_detail_worker_item);
    }

    @Override
    protected void convert(BaseViewHolder helper, RspWorkers item) {
        helper.setText(R.id.tv_name, item.getRealName() + "-" + item.getPhoneNumber())
                .setText(R.id.tv_content, "￥" + item.getAmount());
    }
}
